/**
 * Created by sun on 2016/8/4.
 */
define(function (require) {
    var app = require('/../js/app');
    require('ui-table');

    require('ueditor.all.min');
    require('ueditor.config');
    require('angular-ueditor');


    app.useModule("ui.table");

    app.useModule("ng.ueditor");

    var datepicker = require('datepicker');
    app.controller('security_listCtrl', ['$scope','$http','$filter' ,function ($scope, $http,$filter) {
        $scope.ctrlScope=$scope;
        $scope.orderParams = {
            url: "/admin/userSecurity/list"
        };
        datepicker($scope);
        //创建
        $scope.addOrderModal=function(){
            $scope.orderModal = !$scope.orderModal ;
        };
        //全局查询
        $scope.search = function() {
            $scope.orderParams.ajaxParam=$scope.ctrlScope.itemsearch;
            $scope.orderParams.reload();
        };
        //全局查询重置
        $scope.reset=function(){

            $scope.ctrlScope.itemsearch={};
            $scope.orderParams.ajaxParam={};
            $scope.orderParams.reload();
        };
    }]);


});